package com.systemic.mapper;

import com.systemic.pojo.FriendApply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: FriendApplyMapper
 * @Description: 好友申请接口
 * @Author:
 * @CreateTime: 2023-12-28 17:20
 * @Version:
 **/
@Mapper
public interface FriendApplyMapper {

    /**
     * 新增
     * @param friendApply
     */
    void insert(FriendApply friendApply);

    /**
     * 查询好友申请列表（根据uid）
     * @param friendApply
     * @return
     */
    List<FriendApply> selectList(FriendApply friendApply);

    List<FriendApply> selectListByTarget(@Param("target") Integer target);


    /**
     * 查询好友申请
     * @param friendApply
     * @return
     */
    FriendApply select(FriendApply friendApply);

    /**
     * 更新操作
     * @param apply
     * @return
     */
    int updateFriendApply(FriendApply apply);

    /**
     * 删除
     * @param apply
     */
    int delete(FriendApply apply);
}
